home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / grafica / pvrgjpeg / smakefileppc < prev    next >
Text File  |  1999-01-01  |  2KB  |  66 lines

  1. ###########################################################
  2. # The makefile for the JPEG program.
  3. # There should be no changes for most UNIX compilers.
  4. ###########################################################
  5. #
  6. #  For sysv substitute the following terms:
  7. #  SYSV allows for SYSV system IO calls.  NOTRUNCATE allows
  8. #  for UNIX emulators without the ftruncate() call.
  9. #
  10. #DEFINES = -DSYSV -DNOTRUNCATE
  11. #
  12. # Amiga SAS/C 68k version (7/March/99, ARK)
  13. #
  14.  
  15. CC       = SCPPC
  16. DEFINES  =
  17. JFLAGS   =
  18. DEFS     = system.h globals.h prototypes.h param.h
  19. BASELINE =  jpeg.o codec.o huffman.o io.o chendct.o leedct.o lexer.o marker.o stream.o transform.o
  20.  
  21. .c.o:
  22.         $(CC) $(JFLAGS) $(DEFINES) $*.c
  23.  
  24. .c.ln:
  25.         lint -c $*.c
  26.  
  27. all: jpeg
  28.  
  29. clean:
  30.         rm *.o jpeg
  31.  
  32. jpeg: $(BASELINE)
  33.  
  34.         ppc-amigaos-ld -r LIB:c_ppc.o $(BASELINE) LIB:scppc.a lib:end.o -o jpeg.elf
  35.         Protect jpeg.elf +e
  36.  
  37. jpeg.o: jpeg.c $(DEFS) tables.h
  38. codec.o: codec.c $(DEFS)
  39. huffman.o: huffman.c $(DEFS) stream.h
  40. io.o: io.c $(DEFS)
  41. chendct.o: chendct.c $(DEFS)
  42. leedct.o: leedct.c $(DEFS)
  43. lexer.o: lexer.c $(DEFS) tables.h stream.h
  44. marker.o: marker.c $(DEFS) marker.h stream.h
  45. stream.o: stream.c $(DEFS) marker.h stream.h
  46. transform.o: transform.c dct.h $(DEFS)
  47.  
  48. lcheck: jpeg.ln codec.ln huffman.ln io.ln chendct.ln leedct.ln lexer.ln marker.ln stream.ln transform.ln
  49.         lint jpeg.ln codec.ln huffman.ln io.ln chendct.ln leedct.ln lexer.ln marker.ln stream.ln transform.ln
  50.  
  51. #
  52. # Should you wish to modify the interpreter
  53. # modify this portion here.
  54. #
  55. # Make sure that you move the first comment from the start to
  56. # within the braces %{ /* */ %} in lexer.l,
  57. # otherwise it will give you a error (definitions too long).
  58. #
  59. #  Caution: Sometimes -ll is required.
  60. #
  61. #
  62. #lexer.c: lexer.l
  63. #       lex lexer.l
  64. #       mv lex.yy.c lexer.c
  65. #
  66.